﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<ElectronicRecords.Models.Clients>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Редактировать данные клиента 
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    
   
   
    <% using (Html.BeginForm()) {%>
        <%: Html.ValidationSummary(true) %>
    <h2>Карточка клиента</h2>
    <fieldset>
        <legend>Карточка клиента</legend>
        
                    <div class="editor-label">
                        <%: Html.Label("Фамилия") %>
                    </div>
            
                    <div class="editor-field">
                        <%: Html.TextBoxFor(model => model.Firstname) %>
                        <%: Html.ValidationMessageFor(model => model.Firstname) %>
                    </div>
            
                    <div class="editor-label">
                        <%: Html.Label("Имя") %>
                    </div>
               
                    <div class="editor-field">
                        <%: Html.TextBoxFor(model => model.Lastname) %>
                        <%: Html.ValidationMessageFor(model => model.Lastname) %>
                    </div>
            
                    <div class="editor-label">
                        <%: Html.Label("Email") %>
                    </div>
                
                    <div class="editor-field">
                        <%: Html.TextBoxFor(model => model.Email) %>
                        <%: Html.ValidationMessageFor(model => model.Email) %>
                    </div>
         
                     <div class="editor-label">
                         <%: Html.Label("Телефон") %>
                     </div>
            
            
                    <div class="editor-field">
                        <%: Html.TextBoxFor(model => model.Phone) %>
                        <%: Html.ValidationMessageFor(model => model.Phone) %>
                    </div>
            
                  
            <p>
                <input type="submit" value="Сохранить" class="g-button" />
            </p>
        </fieldset>

    <% } %>

    <div>
        <%: Html.ActionLink("Назад к списку", "List", new { }, new {@class="g-button" })%>
    </div>

</asp:Content>

